import 'package:flutter/material.dart';
import 'package:yb_zsyiji_androidflutter_pro/YBHelper/YBColor/YBColor.dart';
import 'package:yb_zsyiji_androidflutter_pro/YBModule/YBHomePage/YBMapMiShuPage/YBFaLvMiShuPage.dart';
import 'package:yb_zsyiji_androidflutter_pro/YBModule/YBHomePage/YBMapMiShuPage/YBMapShangWuMiShuPage.dart';
import 'package:yb_zsyiji_androidflutter_pro/YBModule/YBHomePage/YBMapMiShuPage/YBMapXingZhengMiShuPage.dart';

class YBMapMiShuMainPage extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return Container(
        child: DefaultTabController(
          length: 3,
          child: Scaffold(
            appBar: AppBar(
              elevation: 0,
              title: Text(
                '掌上秘书',
              ),
              bottom: TabBar(
                  indicatorSize: TabBarIndicatorSize.label,
                  unselectedLabelColor: YBColor.color1B1C1F,
                  labelColor: YBColor.commonThemeColor,
                  indicatorColor: YBColor.commonThemeColor,
                  tabs: [
                    Tab(text: "商务秘书",),
                    Tab(text: "法律秘书",),
                    Tab(text: "行政秘书",),
                  ]
              ),
            ),
            body: TabBarView(
                children:[
                  Container(
                    child: YBMapShangWuMiShuPage(),
                  ),
                  Container(
                    child: YBMapFaLvMiShuPage(),
                  ),
                  Container(
                    child: YBMapXingZhengMiShuPage(),
                  ),
                ]
            ),
          ),
        )
    );
  }
}
